
#include "head.h"
#include "hc595.h"

//int main()
//{
//	KK=0xf7;
//	hc595_data(0x08);
//	while(1)
//	{
//	
//	}
//
//	return 0;
//}

//u8 gled_row[8]={0x00,0x7C,0x82,0x82,0x82,0x7C,0x00,0x00};
//u8 gled_col[8]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};

u8 gled_row[8]={0x38,0x7C,0x7E,0x3F,0x3F,0x7E,0x7C,0x38};
u8 gled_col[8]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};

int main()
{
	u8 i=0;
	u8 j=0;
	while(1)
	{
		for(i=0;i<8;i++)
		{
			KK=gled_col[i];
			hc595_data(gled_row[i]);
			delay_time(5);
			hc595_data(0x00);
		}

	}

	return 0;
}